#!/bin/bash
echo "Project name?"
echo -n "> "
read project_name

echo "Repository root?"
echo -n "> "
read repo_root

echo "FTP"
echo "  Host?"
echo -n "  > "
read ftp_host

echo "  Username? (Leave blank if you wish it to be kept a secret)"
echo -n "  > "
read ftp_username

echo "  Password? (Leave blank if you wish it to be kept a secret)"
echo -n "  > "
read ftp_password

echo "  Live dir?"
echo -n "  > "
read ftp_dir

echo "  Swap dir?"
echo -n "  > "
read ftp_swap_dir

path=./frt.$RANDOM

echo "project_name=\"$project_name\"" >> $path
echo "repo_root=\"$repo_root\"" >> $path
echo "ftp_host=\"$ftp_host\"" >> $path
echo "ftp_username=\"$ftp_username\"" >> $path
echo "ftp_password=\"$ftp_password\"" >> $path
echo "ftp_dir=\"$ftp_dir\"" >> $path
echo "ftp_swap_dir=\"$ftp_swap_dir\"" >> $path

echo
echo "Configuration is stored in $path."
echo "Move it into the root of your SVN repository as \"frt\"."

